#include <iostream>
//#include <string>
using namespace std;
int main()
{
    string s;
    while(getline(cin,s))
    {
        cout<< s.size();
        cout << s << endl;
    }
    return 0;
}